<script>
    const age = 12;
    const name = "wzd";
    // 传统方式
    const p1 = {
        name: name,
        age: age
    };
    console.log(p1);

    // es6
    let p2 = {name,age};
    console.log(p2);
</script>